package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 平台属性映射mapper
 */
@Mapper
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {
    /**
     * 获取平台属性值列表
     * @param categoryId
     * @return
     */
    public List<BaseAttrInfo> getAttrInfoList(@Param("categoryId") Long categoryId);

    /**
     *获取平台属性名和值
     * @param skuId
     * @return
     */
    public List<BaseAttrInfo> getSkuAttrValue(@Param("skuId") Long skuId);
}
